<?php
/**
 * 资方
 *
 * @author lwb
 */
namespace app\wechat\controller;

class Fund extends Common {
    
    private $obj;
    
    public function __construct() {
        parent::__construct();
        $channel_name = ucfirst(session('fund_name'));
        $channel = '\\app\\wechat\\controller\\' . $channel_name . 'Fund';
        $this->obj = new $channel();
    }
    
    /*
     * 鉴权
     */
    public function auth($params){
        return $this->obj->auth($params);
    }
    
    /*
     * 开通
     */
    public function open($params){
        return $this->obj->openAccount($params);
    }
    
    /*
     * 协议
     */
    public function agreement(){
        return $this->obj->agreement();
    }

}
